package com.entity;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;


/**
 * 收藏表
 * 
 * @author chenshun
 * @email sunlightcs@gmail.com
 * @date 2019-12-05 14:43:15
 */
@Entity
@Data
public class Collection implements Serializable {
	private static final long serialVersionUID = 1L;


	@Id
	@ApiModelProperty("主键")
	@GeneratedValue(strategy = GenerationType.AUTO)
	@TableId(value = "id", type = IdType.AUTO)
	private Long id;
	/**
	 * 用户ID
	 */
	@ApiModelProperty("用户id")
	@Column(columnDefinition = "varchar(32)")
	private String userId;
	/**
	 * 帖子ID
	 */
	@ApiModelProperty("帖子id")
	@Column(columnDefinition = "bigint")
	private Long articalId;

	@ApiModelProperty("创建时间")
	@Column(columnDefinition = "datetime")
	private Date crDate;


}
